import request from "@/utils/request";
import { AesMain } from "@/utils/AesHmacMD5"

// 查询模板列表[转字典]
export function getFormWork(processId) {
  return request({
    url: "/admin/budget/form/getFormDict/" + processId,
    method: "get",
  });
}

// 导出文件数据
export function exportMethod_m(query) {
  return request({
    url: "/admin/budget/channel/export/",
    method: "post",
    data: AesMain(query)
  });
}

// ============================================================
// ============================================================
// ============================================================
// 查询数据文件
export function listType(query) {
  return request({
    url: "/admin/budget/channel/list/",
    method: "post",
    data: AesMain(query)
  });
}

// 查询数据文件
export function listAllType(query) {
  return request({
    url: "/admin/budget/channel/list_all/",
    method: "post",
    data: AesMain(query)
  });
}

// 新增数据文件---系统录入|Excel录入
export function addType(query) {
  return request({
    url: "/admin/budget/channel/add/",
    method: "post",
    data: AesMain(query)
  });
}

// 判断上传文件与模板文件是否格式一致
export function modelEqualFile(query) {
  return request({
    url: "/admin/budget/channel/modelEqualFile/",
    method: "post",
    data: AesMain(query)
  });
}

// 判断上传文件与模板文件是否格式一致
export function delType(query) {
  return request({
    url: "/admin/budget/channel/delete/",
    method: "post",
    data: AesMain(query)
  });
}

// 判断上传文件与模板文件是否格式一致
export function downloadType(query) {
  return request({
    url: "/admin/budget/channel/download/",
    method: "post",
    data: AesMain(query)
  });
}

